Skip to content

Instantly share code, notes, and snippets.

@mildsunrise
mildsunrise / dump_vdso_data.c
Last active May 11, 2024 06:35
dumps the data in the vdso_data VVAR (timekeeping info for gettimeofday vDSO)
// WARNING: only for x86
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <assert.h>
#include <time.h>
#include <sys/auxv.h>
@sweetlilmre
sweetlilmre / Build-nginx-with-modules-windows.md
Last active May 11, 2024 06:33
Building nginx with addtional modules on Windows
@gallais
gallais / Impredicative.v
Created February 14, 2018 16:51
Using Impredicativity to beat the positivity checker
Inductive T :=
| Var : nat -> T
| App : T -> T -> T.
Inductive S e : Prop :=
| def: forall R, (forall i, R i -> S i) ->
(forall e', R e' -> S (App e e')) -> S e.
Definition def' :
forall e, (forall e', S e' -> S (App e e')) -> S e.
@EgoMoose
EgoMoose / ViewportModel.lua
Last active May 11, 2024 06:31
Lua class to calculate camera distance/cframe for fitting models into viewport frames
--[[
MIT License
Copyright (c) 2021 EgoMoose
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
javascript:(function() {
var card = prompt("Card Name");
var sites = [];
sites.push("https://www.cardkingdom.com/catalog/search?search=header&filter%5Bname%5D=");
sites.push("https://store.channelfireball.com/products/search?q=");
sites.push("https://www.coolstuffinc.com/main_search.php?pa=searchOnName&page=1&resultsPerPage=25&q=");
sites.push("https://www.miniaturemarket.com/searchresults?q=");
sites.push("https://www.starcitygames.com/results?name=");
sites.push("https://shop.tcgplayer.com/productcatalog/product/show?IsProductNameExact=false&ProductName=");
@Kingtous
Kingtous / dsdt.dsl
Last active May 11, 2024 06:29
Thinkbook 14p patched DSDT for enabling S3 suspend state and fixing ACPI Error for \.SB_.LID0 (Based on BIOS version 39WW)
/*
* Intel ACPI Component Architecture
* AML/ASL+ Disassembler version 20211217 (64-bit version)
* Copyright (c) 2000 - 2021 Intel Corporation
*
* Disassembling to symbolic ASL+ operators
*
* Disassembly of dsdt.dat, Fri Apr 8 00:35:05 2022
*
* Original Table Header:
@amanjuman
amanjuman / Install V2Ray Client on OpenWRT and Configure Vmess
Last active May 11, 2024 06:28
Install V2Ray Client on OpenWRT and Configure Vmess
### The original Author of this package had enabled CloudFlare JS verification. As a result, this automated script will not work.
### Therefore you have to download each package and install it manually.
## Change Directory
cd /tmp/
## Update opkg
opkg update
## If wget not installed already

An guide how to activate Windows 11 Pro for free

Why?

Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet

Am i also able to switch from any other edition to Pro?

The answer is yes! You can switch from almost any edition to Pro completely for free!

Note for users with unactivated Pro edition

People which already have Pro, but not activated, can skip to this step.

Getting started

What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key:

@tuxfight3r
tuxfight3r / 01.bash_shortcuts_v2.md
Last active May 11, 2024 06:21
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line
@edokeh
edokeh / index.js
Last active May 11, 2024 06:19
佛祖保佑,永无 BUG
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \